<?php /* Smarty version Smarty-3.0.8, created on 2011-11-26 03:56:42
         compiled from "./templates\_lastWeekRecommend.tpl" */ ?>
<?php /*%%SmartyHeaderCode:59424ed0637a6b9069-88964403%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd7a56b2701abdff5de990b2f9c89824cdde2307e' => 
    array (
      0 => './templates\\_lastWeekRecommend.tpl',
      1 => 1322279800,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '59424ed0637a6b9069-88964403',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!is_callable('smarty_function_cycle')) include './common/libs/plugins\function.cycle.php';
if (!is_callable('smarty_modifier_truncate')) include './common/libs/plugins\modifier.truncate.php';
?><div id="lastweek">
    <div id="title"><div class="lastWeekTitle"><span>上周推荐top10</span></div></div>
    <div id="content">
        <div style="float:left;width:110px;margin:5px;">
            <div><span>&nbsp;&nbsp;</span></div>                                   
        </div>                                     
        <div id="clear"></div> 
        <ul>
        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('lastWeekTopData_arr')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['name'] = 'thisWeek';
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show'] = (bool)true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max'] = (int)10;
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] = (int)0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'];
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] < 0)
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] = max($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] > 0 ? 0 : -1, $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start']);
else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] = min($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop']-1);
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['thisWeek']['total']);
?>
            <li style="background-color:<?php echo smarty_function_cycle(array('name'=>'color','values'=>'#fff,#fff','advance'=>true),$_smarty_tpl);?>
">                
                <div id="leftnum" style="width:20px;"><span><?php echo ((($tmp = @$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['iteration'])===null||$tmp==='' ? '1' : $tmp)).('.');?>
&nbsp;&nbsp;</span></div>
                <div id="firmlogo" style="margin-top:6px;"><a href="<?php echo $_smarty_tpl->getVariable('lastWeekTopData_arr')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['linkAddress'];?>
"><img src="<?php echo $_smarty_tpl->getVariable('lastWeekTopData_arr')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['imageName'];?>
" width="<?php echo (($tmp = @$_smarty_tpl->getVariable('lastWeekTopData_arr')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['imageWidth'])===null||$tmp==='' ? '20' : $tmp);?>
" height="<?php echo (($tmp = @$_smarty_tpl->getVariable('lastWeekTopData_arr')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['imageHeight'])===null||$tmp==='' ? '20' : $tmp);?>
"/></a></div> 
                <div id="firmname" style="width:80px;"><a href="<?php echo $_smarty_tpl->getVariable('lastWeekTopData_arr')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['linkAddress'];?>
"><span>&nbsp;&nbsp;<?php echo smarty_modifier_truncate((($tmp = @$_smarty_tpl->getVariable('lastWeekTopData_arr')->value[$_smarty_tpl->getVariable('smarty')->value['section']['thisWeek']['index']]['firmName'])===null||$tmp==='' ? 'Google' : $tmp),6,'',false);?>
</span></a></div>
                <div id="clear"></div>
            </li> 
        <?php endfor; else: ?>
        <?php endif; ?>        
        </ul>
        </div>
</div>